package cl.tinet.finalexam.ejb.reserves;

import javax.ejb.Remote;

import cl.tinet.finalexam.exceptions.ReserveCollitionException;
import cl.tinet.finalexam.exceptions.ReserveNotFoundException;
import cl.tinet.finalexam.exceptions.RoomNotFoundException;
import cl.tinet.finalexam.exceptions.UserNotFoundException;
import cl.tinet.finalexam.model.ClassroomModel;
import cl.tinet.finalexam.model.ReserveModel;
import cl.tinet.finalexam.model.UserModel;

@Remote
public interface ReservesBeanInterface {

    /**
     * 
     * Añadir Reserva
     *
     * @param usernameOfReserve
     * @param reserveToAdd
     * @throws ReserveCollitionException
     * @throws RoomNotFoundException
     * @throws UserNotFoundException
     */
   void addReserve(int usernameOfReserve, ReserveModel reserveToAdd) throws ReserveCollitionException, RoomNotFoundException, UserNotFoundException;
   
   /**
    * 
    * Remover Reserva
    *
    * @param reserveToRemove
    * @throws ReserveNotFoundException
    */
   void removeReserve(int reserveToRemove) throws ReserveNotFoundException;
}
